﻿<%@ Page Language="C#" MasterPageFile="~/AdminMaster.Master" AutoEventWireup="true" CodeBehind="Work.aspx.cs" Inherits="MyWeb.Admins.Work" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server" > 
<div class="PageName"></div>
<asp:Panel ID="pnView" runat="server">
<div class="Control"><ul><li><asp:LinkButton CssClass="vadd" ID="lbtAddT" runat="server" onclick="AddButton_Click">Thêm mới</asp:LinkButton></li> <li><asp:LinkButton CssClass="vdelete" ID="lbtDeleteT" runat="server" onclick="DeleteButton_Click">Xóa</asp:LinkButton></li> <li> <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server" onclick="RefreshButton_Click">Làm mới</asp:LinkButton></li> <li> <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Trở lại</a> </li></ul></div>
<asp:Datagrid ID="grdWork" runat="server" width="100%" CssClass="TableView" AutoGenerateColumns="False" AllowPaging="True" PageSize="20" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Center" onitemdatabound="grdWork_ItemDataBound" onitemcommand="grdWork_ItemCommand" onpageindexchanged="grdWork_PageIndexChanged"> <HeaderStyle CssClass="trHeader"></HeaderStyle> <ItemStyle CssClass="trOdd"></ItemStyle> <AlternatingItemStyle CssClass="trEven"></AlternatingItemStyle> <Columns>
<asp:TemplateColumn ItemStyle-CssClass="tdCenter"> <HeaderTemplate> <asp:CheckBox id="chkSelectAll" Runat="server" AutoPostBack="False"></asp:CheckBox> </HeaderTemplate> <ItemTemplate> <asp:CheckBox id="chkSelect" runat="server"></asp:CheckBox> </ItemTemplate> <ItemStyle CssClass="tdCenter"></ItemStyle> </asp:TemplateColumn>
<asp:BoundColumn DataField="woID" HeaderText="woID" Visible="False" />
<asp:BoundColumn DataField="woID" HeaderText="ID" ItemStyle-CssClass="Text" Visible="false" />
<asp:BoundColumn DataField="uID" HeaderText="UserID" ItemStyle-CssClass="Text" Visible="true" />
<asp:BoundColumn DataField="Name" HeaderText="Tên công việc" ItemStyle-CssClass="Text" Visible="true" />
<asp:TemplateColumn ItemStyle-CssClass="DateTime"> <HeaderTemplate>Ngày bắt đầu</HeaderTemplate> <ItemTemplate> <asp:label ID="Label1" runat="server" Text='<%#Eval("StartDate") %>'></asp:label> </ItemTemplate> </asp:TemplateColumn>
<asp:TemplateColumn ItemStyle-CssClass="DateTime"> <HeaderTemplate>Ngày kết thúc</HeaderTemplate> <ItemTemplate> <asp:label ID="Label2" runat="server" Text='<%#Eval("EndDate")%>'></asp:label> </ItemTemplate> </asp:TemplateColumn>
<asp:TemplateColumn ItemStyle-CssClass="DateTime"> <HeaderTemplate>Ngày đăng</HeaderTemplate> <ItemTemplate> <asp:label ID="Label3" runat="server" Text='<%#Eval("Date") %>'></asp:label> </ItemTemplate> </asp:TemplateColumn>
<asp:BoundColumn DataField="Status" HeaderText="Trạng thái" ItemStyle-CssClass="Text" Visible="true" />
<asp:BoundColumn DataField="Point" HeaderText="Điểm tự đánh giá" ItemStyle-CssClass="MoneyUSD" Visible="true" />
<asp:BoundColumn DataField="PointLD" HeaderText="Điểm lãnh đạo đánh giá" ItemStyle-CssClass="MoneyUSD" Visible="true" />
<asp:BoundColumn DataField="PointLD_1" HeaderText="Điểm lãnh đạo đánh giá" ItemStyle-CssClass="MoneyUSD" Visible="true" />
<asp:BoundColumn DataField="TotalPoint" HeaderText="Tổng điểm" ItemStyle-CssClass="MoneyUSD" Visible="true" />
<asp:TemplateColumn ItemStyle-CssClass="Function"> <HeaderTemplate>Chức năng</HeaderTemplate> <ItemTemplate><asp:ImageButton ID="cmdEdit" runat="server" AlternateText="Sửa" CommandName="Edit" CssClass="Edit" ToolTip="Sửa" ImageUrl="/App_Themes/Admin/images/edit.png" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"woID")%>' /><asp:ImageButton ID="cmdDelete" runat="server" AlternateText="Xóa" CommandName="Delete" CssClass="Delete" ToolTip="Xóa" ImageUrl="/App_Themes/Admin/images/delete.png" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"woID")%>' OnClientClick="javascript:return confirm('Bạn có muốn xóa?');" /></ItemTemplate> </asp:TemplateColumn>
</Columns><PagerStyle HorizontalAlign="Center" CssClass="Paging" Position="Bottom" NextPageText="Previous" PrevPageText="Next" Mode="NumericPages"></PagerStyle></asp:Datagrid>
<div class="Control"><ul><li><asp:LinkButton CssClass="vadd" ID="lbtAddB" runat="server" onclick="AddButton_Click">Thêm mới</asp:LinkButton></li> <li><asp:LinkButton CssClass="vdelete" ID="lbtDeleteB" runat="server" onclick="DeleteButton_Click">Xóa</asp:LinkButton></li> <li><asp:LinkButton CssClass="vrefresh" ID="lbtRefreshB" runat="server" onclick="RefreshButton_Click">Làm mới</asp:LinkButton></li> <li> <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Trở lại</a> </li></ul></div>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="False">
<table class="TableUpdate" border="1">
<tr> <td class="Control" colspan="2"><ul><li><asp:LinkButton CssClass="uupdate" ID="lbtUpdateT" runat="server" onclick="Update_Click">Ghi lại</asp:LinkButton></li> <li> <asp:LinkButton CssClass="uback" ID="lbtBackT" runat="server" onclick="Back_Click" CausesValidation="False">Trở về</asp:LinkButton></li> </ul></td> </tr>
<tr> <th> <asp:Label ID="lbluID" runat="server" Text="UserID:"></asp:Label></th><td><asp:TextBox ID="txtuID" runat="server" CssClass="text"></asp:TextBox></td></tr><tr> <th> <asp:Label ID="lblName" runat="server" Text="Tên công việc:"></asp:Label></th><td><asp:TextBox ID="txtName" runat="server" CssClass="text"></asp:TextBox><asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr><tr> <th> <asp:Label ID="lblStartDate" runat="server" Text="Ngày bắt đầu:"></asp:Label></th><td><asp:TextBox ID="txtStartDate" runat="server" CssClass="text datetime"/><asp:MaskedEditExtender ID="meeStartDate" runat="server" Mask="99/99/9999 99:99:99" MaskType="DateTime" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" TargetControlID="txtStartDate" AcceptAMPM="True" Century="2000"/> <asp:MaskedEditValidator ID="mevStartDate" runat="server" ControlExtender="meeStartDate" ControlToValidate="txtStartDate" Display="Dynamic" EmptyValueBlurredText="Date and time is required" IsValidEmpty="True" InvalidValueBlurredMessage="Date and time is invalid" SetFocusOnError="True"/></td></tr><tr> <th> <asp:Label ID="lblEndDate" runat="server" Text="Ngày kết thúc:"></asp:Label></th><td><asp:TextBox ID="txtEndDate" runat="server" CssClass="text datetime"/><asp:MaskedEditExtender ID="meeEndDate" runat="server" Mask="99/99/9999 99:99:99" MaskType="DateTime" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" TargetControlID="txtEndDate" AcceptAMPM="True" Century="2000"/> <asp:MaskedEditValidator ID="mevEndDate" runat="server" ControlExtender="meeEndDate" ControlToValidate="txtEndDate" Display="Dynamic" EmptyValueBlurredText="Date and time is required" IsValidEmpty="True" InvalidValueBlurredMessage="Date and time is invalid" SetFocusOnError="True"/></td></tr><tr> <th> <asp:Label ID="lblDate" runat="server" Text="Ngày đăng:"></asp:Label></th><td><asp:TextBox ID="txtDate" runat="server" CssClass="text datetime"/><asp:MaskedEditExtender ID="meeDate" runat="server" Mask="99/99/9999 99:99:99" MaskType="DateTime" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" TargetControlID="txtDate" AcceptAMPM="True" Century="2000"/> <asp:MaskedEditValidator ID="mevDate" runat="server" ControlExtender="meeDate" ControlToValidate="txtDate" Display="Dynamic" EmptyValueBlurredText="Date and time is required" IsValidEmpty="True" InvalidValueBlurredMessage="Date and time is invalid" SetFocusOnError="True"/></td></tr><tr> <th> <asp:Label ID="lblContent" runat="server" Text="Content:"></asp:Label></th><td><FCKeditorV2:FCKeditor ID="fckContent" runat="server"/></td></tr><tr> <th> <asp:Label ID="lblDetail" runat="server" Text="Nội dung:"></asp:Label></th><td><FCKeditorV2:FCKeditor ID="fckDetail" runat="server"/></td></tr><tr> <th> <asp:Label ID="lblStatus" runat="server" Text="Trạng thái:"></asp:Label></th><td><asp:TextBox ID="txtStatus" runat="server" CssClass="text"></asp:TextBox></td></tr><tr> <th> <asp:Label ID="lblPoint" runat="server" Text="Điểm tự đánh giá:"></asp:Label></th><td><asp:TextBox ID="txtPoint" runat="server" CssClass="text number"/><asp:MaskedEditExtender ID="meePoint" runat="server" Mask="9,999,999.99" MaskType="Number" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" TargetControlID="txtPoint" /> <asp:MaskedEditValidator ID="mevPoint" runat="server" ControlExtender="meePoint" ControlToValidate="txtPoint" Display="Dynamic" EmptyValueBlurredText="Number is required" IsValidEmpty="True" SetFocusOnError="True"/></td></tr><tr> <th> <asp:Label ID="lblPointLD" runat="server" Text="Điểm lãnh đạo đánh giá:"></asp:Label></th><td><asp:TextBox ID="txtPointLD" runat="server" CssClass="text number"/><asp:MaskedEditExtender ID="meePointLD" runat="server" Mask="9,999,999.99" MaskType="Number" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" TargetControlID="txtPointLD" /> <asp:MaskedEditValidator ID="mevPointLD" runat="server" ControlExtender="meePointLD" ControlToValidate="txtPointLD" Display="Dynamic" EmptyValueBlurredText="Number is required" IsValidEmpty="True" SetFocusOnError="True"/></td></tr><tr> <th> <asp:Label ID="lblPointLD_1" runat="server" Text="Điểm lãnh đạo đánh giá:"></asp:Label></th><td><asp:TextBox ID="txtPointLD_1" runat="server" CssClass="text number"/><asp:MaskedEditExtender ID="meePointLD_1" runat="server" Mask="9,999,999.99" MaskType="Number" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" TargetControlID="txtPointLD_1" /> <asp:MaskedEditValidator ID="mevPointLD_1" runat="server" ControlExtender="meePointLD_1" ControlToValidate="txtPointLD_1" Display="Dynamic" EmptyValueBlurredText="Number is required" IsValidEmpty="True" SetFocusOnError="True"/></td></tr><tr> <th> <asp:Label ID="lblTotalPoint" runat="server" Text="Tổng điểm:"></asp:Label></th><td><asp:TextBox ID="txtTotalPoint" runat="server" CssClass="text number"/><asp:MaskedEditExtender ID="meeTotalPoint" runat="server" Mask="9,999,999.99" MaskType="Number" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" TargetControlID="txtTotalPoint" /> <asp:MaskedEditValidator ID="mevTotalPoint" runat="server" ControlExtender="meeTotalPoint" ControlToValidate="txtTotalPoint" Display="Dynamic" EmptyValueBlurredText="Number is required" IsValidEmpty="True" SetFocusOnError="True"/></td></tr><tr> <td class="Control" colspan="2"><ul><li><asp:LinkButton CssClass="uupdate" ID="lbtUpdateB" runat="server" onclick="Update_Click">Ghi lại</asp:LinkButton></li> <li> <asp:LinkButton CssClass="uback" ID="lbtBackB" runat="server"  onclick="Back_Click" CausesValidation="False">Trở về</asp:LinkButton></li> </ul></td> </tr></table>
</asp:Panel>
</asp:Content>
